package main

import (
	"fmt"
	"runtime"
)

func main(){
	go func() {
		defer fmt.Println("---ddd---")
		go test8()
		defer fmt.Println("---ccc---")
	}()

	for{
		;
	}
}

func test8(){
	defer fmt.Println("---aaa---")
	runtime.Goexit()   //退出当前go程
	defer fmt.Println("---bbb---")

}
